#ifndef _PARSING_H_
#define _PARSING_H_

#include <string>
#include <iostream>
#include <sstream>

namespace Auxiliary {

	template <typename T>
	T fromString (const std::string &str) {
		std::stringstream ss;
		T ret;
		ss << str;
		ss >> ret;
		return ret;
	}

	template <typename T>
	std::string toString (const T &data) {
		std::stringstream ss;
		std::string str;
		ss << data;
		ss >> str;
		return str;
	}

};

#endif
